package com.itheima.domin;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

@Data
@TableName("tbl_user")
public class User {
//    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    @TableField(value = "pwd",select = false)
    private String password;
    private Integer age;
    private String tel;


    @TableField(exist = false)
    private Integer online;

    //定义逻辑删除逻辑
//    @TableField(value = "deleted")
//    @TableLogic(value = "0",delval = "1")
    private Integer deleted;


    @Version()
    private Integer version;
}
